<template>
  <div>
    <div>Home</div>
    <a-rate v-model:value="value" />
    <div>用户信息: {{ userInfos }}</div>
  </div>
</template>

<script setup lang="ts">
  import { ref } from 'vue';
  import { storeToRefs } from 'pinia';
  import { useUserInfo } from '@/store/user';

  const userStores = useUserInfo();
  const { userInfos } = storeToRefs(userStores);

  const value = ref<number>(2);
</script>

<style scoped></style>
